package org.cfx.org.mapper;

import org.cfx.org.domain.Department;
import org.cfx.org.domain.Employee;
import org.cfx.org.query.EmployeeQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper {
    void add(Employee employee);
    void update(Employee employee);
    void delete(Long id);

    Employee queryById(Long id);
    List<Employee> queryAll();
    List<Employee> queryAllPage(EmployeeQuery employeeQuery);
    Long queryCount(EmployeeQuery employeeQuery);
    List<Employee> query();

    List<Employee> queryManager();
}
